Run Program from Another Program

I'm working on a program which will give the user the ability to export information by the date last modified. To do this, I have a large program which ultimately takes all of the objects between the two selected dates and puts them into a new module. I then want to run the export programs that are predefined within DOORS using the new module. The user will use a dialog box with radio buttons for each export format to select which program will be used. I am currently having issues with two things: moving the objects into the new module, which I have another post to get help with, and the one that this thread is about, running the program from another program. What DXL script can I use to run, for example, "C:\\Program_Files_(x86)\\IBM\\Rational\\DOORS\\9.3\\lib\\dxl\\standard\\export\\office\\word.dxl" using the module that I created, called "m"?
Thanks for your help!
josiah820 - Thu May 31 10:33:01 EDT 2012

Re: Run Program from Another Program
Mathias Mamsch - Thu May 31 16:17:44 EDT 2012

Well actually it depends if you just want to start the other script, or if you want to 'remote control' it, i.e. circumvent the GUI and go right to the export.

For just starting the script a simple eval_ statement should be enough:

...
Module mod = current 
eval_ "current = module item \"" (fullName mod) "\"\n#include <... your script include path here ...>"
...

 


if you do not want the user being forced to use the GUI to start the export, you can use a technique described here:
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14788325&#14788325

Maybe that helps, Regards, Mathias

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS